package com.victor.entity.partner.happy;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.victor.entity.activity_tuikuan.ActJifen;
import com.victor.entity.activity_tuikuan.ActManjian;
import com.victor.entity.activity_tuikuan.ActMiaosha;
import com.victor.entity.activity_tuikuan.ActTuangou;
import com.victor.entity.activity_tuikuan.TuikuanSetup;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 娱乐项目表（主题）
 * 
 * @author zhangbin
 *
 */
@Entity
@Table(name = "happy_theme")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class HappyTheme {
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY) // 主键类型--自动递增生成
	@Column(name = "t_id", unique = true, nullable = false, length = 11)
	private Integer t_id;

	@Column(name = "h_id", length = 50)
	private String h_id;// 娱乐商家id

	@Column(name = "t_name", length = 50)
	private String t_name;// 娱乐项目名称

	@Column(name = "t_price", length = 50)
	private String t_price;// 娱乐项目价格

	@Column(name = "t_difficulty", length = 50)
	private String t_difficulty;// 项目难度

	@Column(name = "t_type", length = 50)
	private String t_type;// 类型

	@Column(name = "t_people", length = 50)
	private String t_people;// 人数

	@Column(name = "t_limitedtime", length = 50)
	private String t_limitedtime;// 限时

	@Column(name = "t_themeintroduce", length = 50)
	private String t_themeintroduce;// 主题介绍

	@Column(name = "t_carefulnote", length = 50)
	private String t_carefulnote;// 注意事项

	@Column(name = "t_mainphoto", length = 50)
	private String t_mainphoto;// 右侧主图片
	
	@Column(name = "t_installtime", length = 50)
	private String t_installtime;// 项目发布时间
	
	@Column(name = "upordowntype", length = 50)
	private String upordowntype;// 房间上下架状态 0 上架 1下架

	@Transient
	private List<HappyThemePhoto> happyThemePhotos;// 多张 娱乐项目图片

	@Transient
	private List<HappyThemeTime> happyThemeTimes;// 多个娱乐项目时间表
	
	/** 退款活动相关 */
	@Column(name = "if_tuikuan", length = 50)
	private String if_tuikuan;// 是否可以退款 1不可退 2 可以随时退 3 条件退款

	@Column(name = "if_join_activity", length = 50)
	private String if_join_activity;// 是否参加活动

	@Column(name = "join_activity_type", length = 50)
	private String join_activity_type;// 参加活动类型 1 团购活动 2 秒杀活动 3 满减活动 4 积分兑换活动

	@Transient
	private TuikuanSetup tuikuanSetup;// 退款设置信息

	@Transient
	private ActTuangou actTuangou;// 团购表

	@Transient
	private List<ActMiaosha> actMiaoshas;// 商品参加的秒杀活动

	@Transient
	private List<ActManjian> actManjians;// 满减活动list
	
	@Transient
	private ActJifen actJifen;// 积分表
}
